﻿<Window xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"  x:Class="SADev.SharePointHolidayLoader.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SharePoint Holiday Loader" Height="265" Width="628" MinWidth="424"  Icon="/SharePoint%20Holiday%20Loader;component/Images/calendar_1.png" WindowStartupLocation="CenterScreen">
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFE5E5ED" Offset="0" />
            <GradientStop Color="White" Offset="0.558" />
        </LinearGradientBrush>
    </Window.Background>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="158" />
            <ColumnDefinition Width="21*" />
            <ColumnDefinition Width="427*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="2*" />
        </Grid.RowDefinitions>
        <Label Grid.ColumnSpan="2">Select holiday file</Label>
        <Label Grid.Row="1" Grid.ColumnSpan="2">SharePoint Site URL</Label>
        <Label Grid.Row="2" Grid.ColumnSpan="2">Calendar Name</Label>
        <Label Grid.Row="3" Grid.ColumnSpan="2">Username (only set if needed)</Label>
        <Label Grid.Row="4" Grid.ColumnSpan="2">Password (only set if needed)</Label>
        <Label Grid.Row="5" Grid.ColumnSpan="2">Domain (only set if needed)</Label>
        <Grid Grid.Column="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="32"/>
            </Grid.ColumnDefinitions>      
            <dxe:TextEdit Grid.Column="0" x:Name="holidayFileTextEdit" Margin="2" />
            <Button Grid.Column="1" Click="SelectHolidayFileEvent" Margin="2">                
                <Image Source="/SharePoint%20Holiday%20Loader;component/Images/folder_open.png" Margin="2"/>
            </Button>
        </Grid>
        <dxe:TextEdit Grid.Row="1" Grid.Column="2" x:Name="sharePointURITextEdit" Margin="2"/>
        <dxe:TextEdit Grid.Row="2" Grid.Column="2" x:Name="calendarNameTextEdit" Margin="2"/>
        <dxe:TextEdit Grid.Row="3" Grid.Column="2" x:Name="usernameTextEdit" Margin="2"/>
        <dxe:PasswordBoxEdit Grid.Row="4" Grid.Column="2" x:Name="passwordTextEdit" Margin="2"/>
        <dxe:TextEdit Grid.Row="5" Grid.Column="2" x:Name="domainTextEdit" Margin="2"/>
        <StackPanel Grid.Row="6" Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Width="100" Click="QuitApplicationEvent" Margin="2">Quit Application</Button>
            <Button Width="100" Click="PublishHolidayFileEvent" Margin="2">Load Holidays</Button>
        </StackPanel>
        <Button Grid.Row="6" Click="MoreInfoEvent" Margin="2" Grid.ColumnSpan="2">More Info &amp; Help</Button>
    </Grid>
</Window>
